package strategy.a;

public class CashRebate extends CashSuper {

	private double rebate;
	
	public CashRebate(double rebate) {
		super();
		this.rebate = rebate;
	}

	@Override
	public double acceptCash(double cash) {
		
		double result = cash * rebate;
		
		return result;
	}

}
